package com.by.course.entity.bo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class BaseSchedule implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "课程排课表")
    private Long id;

    @ApiModelProperty(value = "'排课状态: 1 开启，2 关闭';")
    private Integer status;

    @ApiModelProperty(value = "课程章节ID")
    private Long lessonId;

    @ApiModelProperty(value = "教师ID")
    private Long teacherId;

    @ApiModelProperty(value = "上课开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "上课结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "最大预约人数")
    private Integer maxStudents;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatedAt;

    private static final long serialVersionUID = 1L;
}